package com.zhang.publicproject.common.adapter;

import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/4/26 0026.
 * 张寰宇
 */
public class MyBaseAdapter<ITEMBEANTYPE> extends BaseAdapter {
   public List<ITEMBEANTYPE> dataSet = new ArrayList<>();

    public MyBaseAdapter(List<ITEMBEANTYPE> dataSet) {
        this.dataSet = dataSet;
    }

    @Override
    public int getCount() {
        if (dataSet != null) {
            return dataSet.size();
        } else {
            return 0;
        }
    }
    @Override
    public Object getItem(int position) {

        return dataSet.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        return null;
    }


}
